import ReactDOM from 'react-dom';
import React from 'react';
import { Provider } from 'mobx-react';
import '@icedesign/base/reset.scss';
import 'antd/dist/antd.css';
import  './assets/icon/iconfont.css'
import  './assets/css/base.css'
// import 'babel-polyfill';
import store from './store';
// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等
import router from './router';

const ICE_CONTAINER = document.getElementById('ice-container');

if (!ICE_CONTAINER) {
  throw new Error('当前页面不存在 <div id="ice-container"></div> 节点.');
}

ReactDOM.render((
  <Provider {...store}>
    {router}
  </Provider>
), ICE_CONTAINER);
